

<f:subview 
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	id="modalPanelMsgSVId"
	template="../home.xhtml" >

	<a4j:form id="msgPanelModelForm"> 
		<rich:modalPanel 
			id="msgPanelModel"
			showWhenRendered="#{facesContext.maximumSeverity != null}"
			height="160" 
			width="380" 
			headerClass="modalPanelMsgStyle" 
			autosized="true"  >
 		
			<f:facet name="header">
				<h:panelGroup>
					<h:outputText value="#{facesContext.maximumSeverity.ordinal == 0 ? label.msg_0 : 
					(facesContext.maximumSeverity.ordinal == 1 ? label.msg_1 : 
					(facesContext.maximumSeverity.ordinal == 2 ? label.msg_2 : label.msg_3))}" />
				</h:panelGroup>
			</f:facet>
		
			<f:facet name="controls">
	            <h:panelGroup>
    	            <h:graphicImage value="../framework/images/close.png" id="hidelink" styleClass="hidelink" />
                	<rich:componentControl for="msgPanelModel" attachTo="hidelink" operation="hide" event="onclick" />
            	</h:panelGroup>
        	</f:facet>

			<h:panelGrid border="0" columns="2" id="modalGridId" columnClasses="al90perc,al10perc">
				<a4j:outputPanel id="outputPanelMsg" ajaxRendered="true" >
					<h:messages id="mensagem" layout="list" showDetail="false"/>
					
<!--					<rich:message></rich:message>-->
<!--					<h:outputText value="#{facesContext.clientIdsWithMessages}" />-->
<!--					<h:dataTable  rows="0" value="#{facesContext.clientIdsWithMessages}" var="clientId" style="width:200px;height:200px;background-color:#ff6699;">-->
<!--						<h:column >-->
<!--							<h:outputText value="#{clientId}" />-->
<!--						</h:column>-->
<!--					</h:dataTable>-->
					 <br /> <br />
				</a4j:outputPanel>
				<h:graphicImage value="../framework/images/spacer.gif" styleClass="msg_#{facesContext.maximumSeverity.ordinal}" id="imagealertId"  />
				<a4j:commandButton value="#{label.ok}" styleClass="bt_checked_80" onclick="Richfaces.hideModalPanel('msgPanelModel')" reRender="AlertImagesId1" id="msgPanelModelOK" /> <br /> <br />
			</h:panelGrid>
		</rich:modalPanel>
	</a4j:form>
</f:subview>
